package p270jp.pxv.android.viewholder;

import android.view.ViewGroup;
import java.util.List;
import p134ei.AnalyticsAction;
import p270jp.pxv.android.model.AppApiSketchLive;
import p521th.FlexibleItemAdapterSolidItem;
import p521th.SolidItemViewHolder;
import p677zi.PixivImageLoader;

/* renamed from: jp.pxv.android.viewholder.FollowLiveListSolidItem */
/* loaded from: classes2.dex */
public class FollowLiveListSolidItem extends FlexibleItemAdapterSolidItem {
    private final List<AppApiSketchLive> lives;
    private final AnalyticsAction openViaAction;
    private final PixivImageLoader pixivImageLoader;

    public FollowLiveListSolidItem(List<AppApiSketchLive> list, AnalyticsAction aVar, PixivImageLoader aVar2) {
        this.lives = list;
        this.openViaAction = aVar;
        this.pixivImageLoader = aVar2;
    }

    @Override // p521th.FlexibleItemAdapterSolidItem
    public int getSpanSize() {
        return 2;
    }

    @Override // p521th.FlexibleItemAdapterSolidItem
    public SolidItemViewHolder onCreateViewHolder(ViewGroup viewGroup) {
        return FollowLiveListViewHolder.createViewHolder(viewGroup, this.lives, this.openViaAction, this.pixivImageLoader);
    }

    @Override // p521th.FlexibleItemAdapterSolidItem
    public boolean shouldBeInserted(int i, int i2, int i3, int i4) {
        return i3 == 0 && i4 / 2 == 2;
    }
}
